FROM openjdk:17

MAINTAINER yezb@16u.com

ENV TZ Asia/Shanghai

RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
    && echo Asia/Shanghai > /etc/timezone

RUN mkdir -p /sqs/test

WORKDIR /sqs/test

EXPOSE 8888

ADD ./target/sqs*.jar ./app.jar

ENTRYPOINT ["java", "-jar", "app.jar"]

CMD ["--spring.profiles.active=dev"]
